package control.bean;

import org.omg.CORBA.PUBLIC_MEMBER;

/**
 * Created with IntelliJ IDEA.
 * User: deshun
 * Date: 21/2/13
 * Time: 10:31 AM
 * To change this template use File | Settings | File Templates.
 */
public class ControlBeanConstant {

    /*
     *  Key - COMMON
     */
    public static final String FIELDTYPE        = "FIELDTYPE";
    public static final String ROWNUMBER        = "ROWNUMBER";
    public static final String POSITIONINROW    = "POSITIONINROW";
    public static final String LABELNAME        = "LABELNAME";
    public static final String HEIGHT           = "HEIGHT";
    public static final String WIDTH            = "WIDTH";
    public static final String CONTROLNAME      = "CONTROLNAME";
    public static final String HINT             = "HINT";
    public static final String REQUIRED         = "REQUIRED";
    public static final String READONLY         = "READ ONLY";

    /*
     *  KEY - TEXTFIELD, MULTITEXTFIELD
     */
    public static final String INPUTVALUE       = "INPUTVALUE";
    public static final String CALCULATEDFIELD  = "CALCULATEDFIELD";

    /*
     * KEY - DATEPICKER
     */
    public static final String DATEVALUE        = "DATEVALUE";


    /*
     * KEY - TIMEPICKER
     */
    public static final String HOUR = "HOUR";
    public static final String MINUTE = "MINUTE";

    /*
     * KEY - RADIO, LISTBOX, DROPDOWN, CHECKBOX
     */
    public static final String OPTIONS = "OPTIONS";


    /*
     *   Value
     */
    public static enum FIELDTYPE {
        HEADER, TEXTFIELD, MULTITEXTFIELD, DATEPICKER, TIMEPICKER, RADIO, CHECKBOX, DROPDOWNLIST, LISTBOX, MATRIX, FILEATTACHMENT, IMAGE
    }
    public static final int HEADER          = 0;
    public static final int TEXTFIELD       = 1;
    public static final int MULTITEXTFIELD  = 2;
    public static final int DATEPICKER      = 3;
    public static final int TIMEPICKER      = 4;
    public static final int RADIO           = 5;
    public static final int CHECKBOX        = 6;
    public static final int DROPDOWNLIST    = 7;
    public static final int LISTBOX         = 8;
    public static final int MATRIX          = 9;
    public static final int FILEATTACHMENT  = 10;
    public static final int IMAGE           = 11;
    public static final int DIVISIONLINE    = 12;
}
